<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* p{
            color: red;
            color: #ff0000; //16进制写法
      }  */

        /*p {
            color: rgba(0, 0, 0, 1);    /* a是透明度,0-1选择 
            font-size: 20px;
        }  */

        h {
            font-size: 30px;
            font-weight: lighter;
            font-style: italic;
        }
        
        i {
            font-style: normal;
        }


        p{
            color: rgba(0, 0, 0, 1);
            font-size: 30px;
            font-weight: 700;     /*粗细 */
            font-style: italic;   /*斜体 */ 
            font-family: "微软雅黑";
        }
    </style>
</head>

<body>
    <p>我来学习字体属性 </p>
    <h3>我是标题</h3>
    <i>我是i标签</i>
</body>

</html>